Returns the bounding rectangle of an image.
extern pascal ComponentResult GraphicsImportGetNaturalBounds (
GraphicsImportComponent ci,
Rect *naturalBounds);
You can use the GraphicsImportGetNaturalBounds function to determine the native size of the image associated with a graphics importer component. The natural bounds are always zero-based. This is a convenience function that simply calls GraphicsImportGetImageDescription and extracts the width and height fields.
Returns image description information.
extern pascal ComponentResult GraphicsImportGetImageDescription (
GraphicsImportComponent ci,
ImageDescriptionHandle *desc);
Returns the offset and size of the compressed image data within a file.
extern pascal ComponentResult GraphicsImportGetDataOffsetAndSize (
GraphicsImportComponent ci,
unsigned long *offset,
unsigned long *size);
This function returns the offset and size of the actual image data within the data source. By default the offset returned is 0 and the size returned is the size of the file. However, some graphics import components will override this function to skip over unneeded information at the beginning or end of the file.